import axios from "axios";

export function request(config) {
  const NeteaseCloud = axios.create({
    baseURL: "http://localhost:3000",
    timeout: 20000,
  });
  return NeteaseCloud(config);
}

export function userRequest(config) {
  const logReg = axios.create({
    baseURL: "",
    timeout: 5000,
  });
  return logReg(config);
}
